﻿
using Chain.BLL;
using System;
using System.Data;
using System.Text.RegularExpressions;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

public partial class SmallChangeLog : Page
{




    protected string GetTypeStr(object objPointChangeType)
    {
        switch (Convert.ToInt32(objPointChangeType))
        {
            case 1:
                return "获得零钱";

            case 2:
                return "零钱提现";

           
        }
        return "";
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if ((base.Request.Cookies["uid"] != null) && Regex.IsMatch(base.Request.Cookies["uid"].Value, @"^\d+"))
        {
            int MemID = Convert.ToInt32(base.Request.Cookies["uid"].Value);


            Chain.BLL.SmallChangeLog SmallChangeLogBll = new Chain.BLL.SmallChangeLog();

            DataTable dt = SmallChangeLogBll.GetList("SmallChangeMemID=" + MemID + " order by SmallChangeID desc").Tables[0];
            this.rptSmallChangeLog.DataSource = dt;
            this.rptSmallChangeLog.DataBind();
            if (dt.Rows.Count == 0)
            {
                this.msg.Style.Add("display", "");
            }
        }
    }
}


